#pragma once

#include "Entity.h"

class Room;

class LaserDoor : public Entity
{
public:

	LaserDoor(Room* roomToLock, bool vertical);
	~LaserDoor(void);

	// Update
	void Update(float elapsed);

	// Draw
	void Render(void);

	// Check collision
	bool CheckCollision(IEntity* base);

private:

	// Number of active laser doors
	static unsigned int Count;

	// The shared image for laser doors
	static int ImageID;

	// The room the door is in
	Room* LockedRoom;

	// Is the door vertical or horizontal
	bool Vert;

	bool done;
};